/****************************************************************/
/*  I M P E T U S     C O P Y R I G H T      S T A T E M E N T  */
/****************************************************************/
/*                                                              */
/*  NOTICE: THIS SOFTWARE CONTAINS TRADE SECRETS THAT BELONG TO */
/*          IMPETUS INFOTECH, AND IS LICENSED BY AN AGREEMENT.  */
/*          ANY UNAUTHORIZED ACCESS, USE, DUPLICATION OR        */
/*          DISCLOSURE IS UNLAWFUL.                             */
/*                                                              */
/*          COPYRIGHT (C) 2008 IMPETUS INFOTECH INDIA PVT LTD   */
/*          ALL RIGHTS RESERVED.                                */
/****************************************************************/

package com.iLabs.spice.services;

import java.util.Collection;

import com.iLabs.spice.common.exception.SysException;
import com.iLabs.spice.dto.Activity;
/**
 * The interface provide all activities service for open-social site.
 * @author iLabs
 */
public interface IActivity {
	/**
	 * The api create new activity and return number of rows inserted.
	 * @param activity Activity
	 * @return int
	 * @throws SysException
	 */
	int createActivity(Activity activity)throws SysException;
	
	/**
	 * The api get all the activities of user corresponding to userId return collection of activities
	 * @param userId
	 * @return
	 * @throws SysException
	 */ 
	
	Collection<Activity> getActivities(int userId)throws SysException;
	
	/**
	 * The api get all activities of user friend corresponding to userId.
	 * return collection of activities
	 * @param userId
	 * @return
	 * @throws SysException
	 */
	Collection<Activity> getFriendsActivities(int userId)throws SysException;
	
}
